package com.example.demo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


//Data 注解 表示可以通过文档获取并修改类信息
@Data
@AllArgsConstructor
@NoArgsConstructor
public class MessageInfo {

   private  String from;
   private  String to;
   private String message;

}


class Demo {

   public static void main(String[] args) {
      MessageInfo messageInfo = new MessageInfo("来自","指向","消息");
      System.out.println(messageInfo.getMessage());
      System.out.println(messageInfo.getFrom());
      System.out.println(messageInfo.getTo());
   }

}